package com.harbintransport.backend.model;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "hourly_traffic_trends")
public class HourlyTrafficTrend {

    @Id
    private int hour;

    private int onboard;
    private int offboard;

    // JPA需要一个无参构造函数
    public HourlyTrafficTrend() {
    }

    public HourlyTrafficTrend(int hour, int onboard, int offboard) {
        this.hour = hour;
        this.onboard = onboard;
        this.offboard = offboard;
    }

    // Getters and Setters
    public int getHour() {
        return hour;
    }

    public void setHour(int hour) {
        this.hour = hour;
    }

    public int getOnboard() {
        return onboard;
    }

    public void setOnboard(int onboard) {
        this.onboard = onboard;
    }

    public int getOffboard() {
        return offboard;
    }

    public void setOffboard(int offboard) {
        this.offboard = offboard;
    }
}